package cn.xianshu.org.mapper;

import cn.xianshu.basic.mapper.BasicMapper;
import cn.xianshu.org.domain.Department;
import cn.xianshu.org.query.DepartmentQuery;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface DepartmentMapper extends BasicMapper<Department> {
    /*Department loadById(Long id);
    List<Department> loadAll();
    void add(Department department);
    void update(Department department);
    void remove(Long id);
    // 分页查询总条数
    Integer count(DepartmentQuery query);
    // 当前页数据
    List<Department> queryData(DepartmentQuery query);

    void bydelete(List<Long> ids);*/

    List<Department> loadTree();
}
